package com.rgp.apidriver.controller;

import com.rgp.apidriver.service.PayOffOrderService;
import com.rgp.internalcommon.dto.LaunchOrderPayOffDto;
import com.rgp.internalcommon.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author nhp
 * @version 1.0
 * @description TODO
 * @date 2024-04-26 19:51
 */
@RestController
@RequestMapping("/driver")
public class PayOffOrderController {

    @Autowired
    private PayOffOrderService payOffOrderService;

    @PostMapping("/launch-payoff-order")
    public ResponseResult launchPayOffOrderByDriver(@RequestBody LaunchOrderPayOffDto launchOrderPayOffDto){
        return payOffOrderService.launchPayOffOrderByDriver(launchOrderPayOffDto);
    }
}
